{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block title %}登录{% endblock %}

{% block content %}


<div class="container auth">
    <div class="row justify-content-center">
        <div class="col-md-6 col-lg-4 p-4">
        <p class="text-muted border-bottom">还没有账号？<a  href="{% url 'account:register' %}" class="text-decoration-none text-primary ml-1">注册</a></p>
        <form method="POST" class="mt-2">
            {% csrf_token %}
            <fieldset class="form-group">
                {{ form | crispy }}
                <!-- 登录认证码 -->
                <img src="{% url 'account:verify_code' %}" alt="验证码图片">
            </fieldset>

            <div class="form-group">
                <button class="btn btn-outline-info" type="submit">登录</button>
                <a class="text-sm ml-2 text-decoration-none text-primary" href="{% url 'account:password_reset' %}">忘记密码？</a>
            </div>
        </form>
        </div>
    </div>
</div>
{% endblock %}
